package mappingBD;

import java.awt.image.BufferedImage;
import java.io.Serializable;


public class Client implements Serializable {

	private static final long serialVersionUID = 5400930669139092980L;

	String motDePasse;
	int id;
	String nom;
	String prenom;
	String pseudo;
	BufferedImage avatar;
	boolean statusDeConnection;
	SalleDeDiscussion salleCourante;
	String type;

	public Client (String pseudo){
		this.pseudo = pseudo;
	}
	
	public Client (String type, String pseudo, String motDePasse){
		this.type = type;
		this.pseudo = pseudo;
		this.motDePasse = motDePasse;
	}
	
	public Client(String type, String nom, String prenom, String pseudo, String password){
		this.type = type;
		this.nom = nom;
		this.prenom = prenom;
		this.pseudo = pseudo;
		this.motDePasse = password;
	}
	
	public Client(String type, String nom, String prenom, String pseudo, BufferedImage avatar, Boolean estConnecte){
		this.type = type;
		this.nom = nom;
		this.prenom = prenom;
		this.pseudo = pseudo;
		this.avatar = avatar;
		this.statusDeConnection = estConnecte;
	}
	
	public Client(String type, String nom, String prenom, String pseudo, String motDePasse, BufferedImage avatar, Boolean estConnecte){
		this(type, nom, prenom, pseudo, avatar, estConnecte);
		this.motDePasse = motDePasse;
	}
	
	//Test
	public Client(String type, String nom, String prenom, String pseudo, Boolean estConnecte){
		this.type = type;
		this.nom = nom;
		this.prenom = prenom;
		this.pseudo = pseudo;
		this.statusDeConnection = estConnecte;
	}
	
	public Client(String type, String nom, String prenom, String pseudo, String motDePasse, Boolean estConnecte){
		this(type, nom, prenom, pseudo, estConnecte);
		this.motDePasse = motDePasse;
	}

	//GETTERS AND SETTERS
	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getPrenom() {
		return prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public String getPseudo() {
		return pseudo;
	}

	public void setPseudo(String pseudo) {
		this.pseudo = pseudo;
	}

	public String getMotDePasse() {
		return motDePasse;
	}

	public void setMotDePasse(String motDePasse) {
		this.motDePasse = motDePasse;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public BufferedImage getAvatar() {
		return avatar;
	}

	public void setAvatar(BufferedImage avatar) {
		this.avatar = avatar;
	}

	public boolean isStatusDeConnection() {
		return statusDeConnection;
	}

	public void setStatusDeConnection(boolean statusDeConnection) {
		this.statusDeConnection = statusDeConnection;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public SalleDeDiscussion getSalleCourante() {
		return salleCourante;
	}

	public void setSalleCourante(SalleDeDiscussion salleCourante) {
		this.salleCourante = salleCourante;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}
